home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_05
/
1005052a
< prev
next >
Wrap
Text File
|
1992-03-09
|
514b
|
17 lines
Listing 3. CircularBuffer and Filter structures
typedef struct {
int index, /* index for next filter output */
mask; /* masking value (length - 1) */
double *buffer;
} CircularBuffer;
typedef struct {
double *coef; /* Filter coefficients */
int order; /* Number of coefficients */
CircularBuffer *y; /* Previous outputs */
} Filter